#!/bin/sh

BIT_CONFIG_DIR="$HOME/.BitCreekConfig"
SSL_KEYSTORE="$BIT_CONFIG_DIR/server.keystore"
SSL_KEYSTORE_PASSWORD="123456"

mkdir -p $BIT_CONFIG_DIR
if [ ! -f $SSL_KEYSTORE ]
then
	echo 
	echo "Server certificate not present."
	echo "You need to add one to" $SSL_KEYSTORE "prior to run BitCreek Client software."
	echo 
	exit
fi

ant -DBIT_SETTINGS_DIR=$BIT_CONFIG_DIR -DSSL_KEYSTORE_PASSWORD=$SSL_KEYSTORE_PASSWORD applicationWindow
